<template>
	<view>
		<s-layout class="set-wrap" title="关于我们" :bgStyle="{ color: '#FFF' }">
			<view>
				<image src="../../static/aboutus/banner.png" style="width: 100%;height: 300rpx;" mode="heightFix">
				</image>
			</view>
			<view class="list">
				<view class="item" 
				@tap="
				  sheep.$router.go('/pages/public/richtext', {
				    id: 4,
				    title: '购物须知',
				  })
				"
				>
					<view class="item-icon">
						<image src="../../static/aboutus/one.png" mode="aspectFit"></image>
					</view>
					<view class="item-title">购物须知</view>
				</view>
				<view class="item" 
				@tap="
				  sheep.$router.go('/pages/public/richtext', {
				    id: 5,
				    title: '保护信息',
				  })
				"
				>
					<view class="item-icon">
						<image src="../../static/aboutus/two.png"></image>
					</view>
					<view class="item-title">保护信息</view>
				</view>
				<view class="item" 
				@tap="
				  sheep.$router.go('/pages/public/richtext', {
				    id: 6,
				    title: '关于发货',
				  })
				"
				>
					<view class="item-icon">
						<image src="../../static/aboutus/send.png"></image>
					</view>
					<view class="item-title">关于发货</view>
				</view>
				<view class="item" 
				@tap="
				  sheep.$router.go('/pages/public/richtext', {
				    id: 8,
				    title: '证照信息',
				  })
				"
				>
					<view class="item-icon">
						<image src="../../static/aboutus/idcard.png"></image>
					</view>
					<view class="item-title">证照信息</view>
				</view>
			</view>
		</s-layout>
	</view>
</template>

<script setup>
	import {
		onLoad
	} from '@dcloudio/uni-app';
	import {
		reactive
	} from 'vue';
	import sheep from '@/sheep';

	const state = reactive({
		list: [],
		loading: true,
	});

	function aboutsDetail(type,title) {
		sheep.$router.go('/pages/public/aboutusDetail', {
			type: type,
			title: title
		});
	}
</script>

<style lang="scss" scoped>
	.list {
		width: 100%;
		display: flex;
		justify-content: space-between;
		padding: 20rpx;
		box-sizing: border-box;

		.item {
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;

			.item-icon {
				display: flex;

				image {
					width: 80rpx;
					height: 80rpx;
				}
			}

			.item-title {
				color: #333;
				font-size: 28rpx;
				padding-top: 15rpx;
			}
		}
	}
</style>